﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Sales.Data
{
    public enum WeekDay
    {
        Monday = 1,
        Tuesday = 2,
        Wednesday = 3,
        Thursday = 4,
        Friday = 5,
        Saturday = 6,
        Sunday = 7
    }

    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-9-5
    /// 发货时间表
    /// </summary>
    public class DeliverySchedule : TransactionConfig
    {
        /// <summary>
        /// 网店id
        /// </summary>
        public int ApplicationId { get; set; }

        /// <summary>
        /// 星期几
        /// </summary>
        public WeekDay WeekDay { get; set; }

        /// <summary>
        /// 周号，是一个6位十进制数，前4位为年，后两位为周数
        /// </summary>
        public int WeekNo { get; set; }

        /// <summary>
        /// 下一次周号，是一个6位十进制数，前4位为年，后两位为周数
        /// </summary>
        public int NextWeekNo { get; set; }

        /// <summary>
        /// 是否固定发货周，即在cutoff时不把当前发货周号改为下一个周号
        /// </summary>
        public bool IsFix { get; set; }
    }
}
